package br.com.fafica.sisape.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JButton;

import br.com.fafica.sisape.control.ControllerTelas;

import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class TelaPopularBanco extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaPopularBanco frame = new TelaPopularBanco();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaPopularBanco() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 209);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnPopularBanco = new JButton("Popular Banco");
		btnPopularBanco.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				//ControllerPrincipal control = new ControllerPrincipal();
				//control.popularBanco();
			}
		});
		btnPopularBanco.setFont(new Font("Tahoma", Font.PLAIN, 16));
		btnPopularBanco.setBounds(104, 31, 231, 36);
		contentPane.add(btnPopularBanco);
		
		JButton btnFazerLogin = new JButton("Fazer Login");
		btnFazerLogin.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				ControllerTelas control = new ControllerTelas();
				dispose();
			}
		});
		btnFazerLogin.setFont(new Font("Tahoma", Font.PLAIN, 16));
		btnFazerLogin.setBounds(104, 85, 231, 36);
		contentPane.add(btnFazerLogin);
	}
}
